<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app"></div>
    <template id="txt">
        <div>
            <button @click="say()">click</button>
        </div>
    </template>
</body>
<script src="/vue.min.js"></script>
<script>
    var vm = new Vue({
        el: '#app',
        template: '#txt',
        data: function () {
            return {
                number: '1',
                username:'make'
            }
        },
        methods:{
        
            say:function(){
                console.log(event.target.innerHTML)//第一种不传之 获取原生对象的值
               
            }

        }
    })

</script>

</html>